// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '供应商表',
        name: 'suppliermodel',
        url: "/suppliermodel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"SupplierCode":"","SupplierName":"","SupplierType":"","SupplierContact":"","SupplierTel":"","SupplierEmail":"","DeptId":[],"SupplierPersonId":"","SupplierState":"","SupplierAddr":"","SupplierDesc":"","FinanceId":""};
    const editFormOptions = [[{"title":"供应商编号","field":"SupplierCode"}],
                              [{"title":"供应商名称","field":"SupplierName"}],
                              [{"dataKey":"供应商分类","data":[],"title":"供应商分类","field":"SupplierType","type":"select"}],
                              [{"title":"联系人","field":"SupplierContact"}],
                              [{"title":"联系电话","field":"SupplierTel"}],
                              [{"title":"电子邮箱","field":"SupplierEmail"}],
                              [{"dataKey":"部门级联","data":[],"title":"进货部门","field":"DeptId","type":"cascader"}],
                              [{"dataKey":"用户列表","data":[],"title":"进货负责人","field":"SupplierPersonId","type":"select"}],
                              [{"dataKey":"status","data":[],"title":"状态","field":"SupplierState","type":"select"}],
                              [{"title":"供应商地址","field":"SupplierAddr"}],
                              [{"title":"供应商备注","field":"SupplierDesc"}],
                              [{"dataKey":"供应商财务表","data":[],"title":"供应商财务表","field":"FinanceId","type":"select"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'Id',title:'供应商id',type:'bigint',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'SupplierCode',title:'供应商编号',type:'string',width:120,align:'left',sort:true},
                       {field:'SupplierName',title:'供应商名称',type:'string',width:120,align:'left'},
                       {field:'SupplierType',title:'供应商分类',type:'int',bind:{ key:'供应商分类',data:[]},width:120,align:'left'},
                       {field:'SupplierContact',title:'联系人',type:'string',width:120,align:'left'},
                       {field:'SupplierTel',title:'联系电话',type:'string',width:120,align:'left'},
                       {field:'SupplierEmail',title:'电子邮箱',type:'string',width:120,align:'left'},
                       {field:'DeptId',title:'进货部门',type:'string',bind:{ key:'部门级联',data:[]},width:120,align:'left'},
                       {field:'SupplierPersonId',title:'进货负责人',type:'bigint',bind:{ key:'用户列表',data:[]},width:120,align:'left'},
                       {field:'SupplierState',title:'状态',type:'string',bind:{ key:'status',data:[]},width:120,align:'left'},
                       {field:'SupplierAddr',title:'供应商地址',type:'string',width:120,align:'left'},
                       {field:'SupplierDesc',title:'供应商备注',type:'string',width:120,align:'left'},
                       {field:'FinanceId',title:'供应商财务表',type:'bigint',bind:{ key:'供应商财务表',data:[]},width:120,align:'left'},
                       {field:'IsDel',title:'删除标识',type:'sbyte',width:120,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:120,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sort:true},
                       {field:'CreateID',title:'创建人id',type:'int',width:120,hidden:true,align:'left'},
                       {field:'ModifyID',title:'修改人id',type:'int',width:120,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}